package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.modeling.dataapi.LoadDataApi;
import com.mysoft.framework.modeling.dto.FieldsSetting;
import com.mysoft.framework.modeling.dto.ListDataResult;
import com.mysoft.framework.modeling.dto.LoadDataParams;
import com.mysoft.framework.mvc.api.Controller;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.ProvinceRadarService;
import com.mysoft.gfyx.marketdevelop.service.impl.InspectDeveloperServiceImp;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

@PubService(value = "/provinceRadarDeveloper", prefix = RequestPrefix.API)
@Tag(name = " 省市雷达推荐客户-API")
public class ProvinceRadarDeveloperLoadDataApiController extends Controller implements LoadDataApi {
    @Resource
    private ProvinceRadarService provinceRadarService;

    @Override
    public boolean projectFilter() {
        return false;
    }

    @Override
    public FieldsSetting loadFields() {
        return provinceRadarService.loadRecommendedDeveloperFields();
    }

    @Override
    public ListDataResult loadData(@RequestBody LoadDataParams options) {
        return provinceRadarService.loadRecommendedDeveloperData(options);
    }
}
